<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
if ( ! defined('BASEPATH')) exit('No direct script access allowed');
if ( ! function_exists('get_online_support')){
    function get_online_support($type,$data_source){
        $result = array();
        foreach ($data_source as $item){
            if ($item['type'] == $type) array_push($result, $item);
        }
        return $result;
    }
}
?>
